onCreateAnimator

open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator(source)

Called when a fragment loads an animator. This will be called when onCreateAnimation returns null. Note that if setCustomAnimations was called with Animation resources instead of Animator resources, nextAnim will be an animation resource.

Parameters

transit

The value set in setTransition or 0 if not set.

enter

true when the fragment is added/attached/shown or false when the fragment is removed/detached/hidden.

nextAnim

The resource set in setCustomAnimations, setCustomAnimations, or 0 if neither was called. The value will depend on the current operation.